
public class PrefixPostfix {

	public static void main(String[] args) {
int x;
		
		x = 3;
		System.out.println("Before Prefix X = " + ++x);
		System.out.println("After Prefix X = " + x);

		x = 3;
		System.out.println("Before Postfix X = " + x++);
		System.out.println("After Postfix X = " + x);

	}

}
